ARCH := arm
CROSS_COMPILE := arm-linux-gnueabihf-
KERNELDIR := /home/yushuang/nxplinux/linux-net
CURRENT_PATH := $(shell pwd)

obj-m := ft5x06.o gt9147.o

build: kernel_modules

kernel_modules:
	$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules

clean:
	$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean
